package main

import (
	"fmt"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://www.liwenzhou.com/posts/Go/go_menu/", nil)
	req.Header.Add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36 Edg/89.0.774.50")
	// fmt.Println(req.Header)
	// fmt.Println(req.UserAgent())
	cl := &http.Client{}
	resp, err := cl.Do(req)
	if err != nil {
		fmt.Println("err", err)
		return
	}
	fmt.Println(resp)

	defer resp.Body.Close()

}
